package com.ruoyi.dgw.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 耳标对象 tag_number
 *
 * @author l
 * @date 2021-12-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "耳标类实体")
public class TagNumber  {
    private static final long serialVersionUID = 1L;

    /**
     * 耳标_主键ID
     */
    @ApiModelProperty("id")
    private String tagNumberId;

    /**
     * 耳标编号
     */
    @Excel(name = "耳标编号")
    @ApiModelProperty("耳标编号")
    private String earNumber;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户id")
    private String userId;

    /**
     * 用户手机号码
     */
    @ApiModelProperty("用户手机号码")
    @Excel(name = "用户手机号码")
    private String phone;

    /**
     * 该字段用于标识这个耳标是否使用.0是未使用 1是已使用
     */
    @Excel(name = "育龄")
    @ApiModelProperty("育龄")
    private Long isUse;

    /**
     * 投保id
     */
    @Excel(name = "投保id")
    @ApiModelProperty("投保id，0为未投保，不等于0就是已投保")
    private String insuranceId;

    /**
     * 贷款id 如果=0就是没贷款，不等于0就是已贷款
     */
    @Excel(name = "贷款id 如果=0就是没贷款，不等于0就是已贷款")
    @ApiModelProperty("贷款id 如果=0就是没贷款，不等于0就是已贷款")
    private Long loans;

    /**
     * 地区id
     */
    @Excel(name = "地区id")
    @ApiModelProperty("地区id")
    private Long deptId;

    /**
     * 养殖户
     */
    @Excel(name = "养殖户")
    @ApiModelProperty("养殖户")
    private String name;

    /**
     * 地区
     */
    @Excel(name = "地区")
    @ApiModelProperty("地区名称")
    private String deptName;

    /**
     * 是否报废1=未报费，2=已报废
     */
    @ApiModelProperty("是否报废1=未报费，2=已报废")
    @Excel(name = "是否报废1=未报费，2=已报废")
    private Long scrap;

    @Excel(name = "温度")
    @ApiModelProperty("温度")
    private String temp;

    @Excel(name = "计步")
    @ApiModelProperty("计步")
    private Integer jbu;

    @Excel(name = "电量")
    @ApiModelProperty("电量")
    private Integer power;

    @Excel(name = "牛类型")
    @ApiModelProperty("牛类型")
    private Integer cowType;

    @Excel(name = "牛棚名称")
    @ApiModelProperty("牛棚名称")
    private String cowShedName;

    @Excel(name = "牛棚地址")
    @ApiModelProperty("牛棚地址")
    private String shedAddress;

    /** 创建时间 */
    @ApiModelProperty("入栏时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @Excel(name="安装人员")
    private String createBy;

    @Excel(name = "预出栏")
    @JsonFormat(pattern = "yyyy-MM")
    private Date cowTime;
}
